package drds.global_transaction.resource_manager.model;

import lombok.Getter;
import lombok.Setter;

public class ColumnMetaData
{
	@Setter
	@Getter
	private String tableCat;
	@Setter
	@Getter
	private String tableSchemaName;
	@Setter
	@Getter
	private String tableName;
	@Setter
	@Getter
	private String columnName;
	@Setter
	@Getter
	private int dataType;
	@Setter
	@Getter
	private String dataTypeName;
	@Setter
	@Getter
	private int columnSize;
	@Setter
	@Getter
	private int decimalDigits;
	@Setter
	@Getter
	private int numPrecRadix;
	@Setter
	@Getter
	private int nullAble;
	@Setter
	@Getter
	private String remarks;
	@Setter
	@Getter
	private String columnDef;
	@Setter
	@Getter
	private int sqlDataType;
	@Setter
	@Getter
	private int sqlDatetimeSub;
	@Setter
	@Getter
	private int charOctetLength;
	@Setter
	@Getter
	private int ordinalPosition;
	@Setter
	@Getter
	private String isNullAble;
	@Setter
	@Getter
	private String isAutoincrement;

	public ColumnMetaData()
	{
	}

	public boolean isAutoincrement()
	{
		return "YES".equalsIgnoreCase(isAutoincrement);
	}
}
